﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="Notifications.aspx.cs" Inherits="Event_SG_EWDT.Notifications" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Userhead" runat="server">
    <title>Notifications</title>
    <link href="Styles/GridviewCss/gridview.css" rel="stylesheet" type="text/css" />
    <link href="Styles/Notifications.css" rel="stylesheet" type="text/css" />
    <link href="Styles/GridviewCssUnread/gridviewUnread.css" rel="stylesheet" type="text/css" />
    <link href="Scripts/jquery.toastmessage.css" rel="stylesheet" type="text/css" />
	<script src="Scripts/jquery.toastmessage.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="newHolder" runat="server">
    <p class="h1">Notifications<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
</p>
<div class="DivNotifications">

<p class="p">
	Unread Notifications
	</p>
    <asp:GridView ID="gvUnreadNotifications" 
    runat="server"
    AllowPaging="True"
    AutoGenerateColumns="False" 
    CssClass="mGridUnRead"
    HorizontalAlign="Center"
    PageSize="10"
    DataSourceID="NotificationSource">
	<AlternatingRowStyle CssClass="alt" />
        <Columns>
            <asp:BoundField DataField="notification" HeaderText="Unread Notification" />
        </Columns>
    <PagerStyle CssClass="pgr" />
    </asp:GridView>
    <asp:ObjectDataSource ID="NotificationSource" runat="server" 
        SelectMethod="RetrieveMyUnReadNotification" 
        TypeName="Event_SG_EWDT.DBQUERIES" 
        DataObjectTypeName="Event_SG_EWDT.MemberEvent" 
        UpdateMethod="UpdateMemberEvent_Role">
        <SelectParameters>
            <asp:SessionParameter Name="receiver" SessionField="Member" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <p class="p">
	Read Notifications
	</p>
     <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="Event_SG_EWDT.MemberEvent" 
        SelectMethod="RetrieveMyReadNotification" TypeName="Event_SG_EWDT.DBQUERIES" 
        UpdateMethod="UpdateMemberEvent_Role">
         <SelectParameters>
             <asp:SessionParameter Name="receiver" SessionField="Member" Type="String" />
         </SelectParameters>
    </asp:ObjectDataSource>
     <asp:GridView ID="gvReadNotifications" 
    runat="server"
    AllowPaging="True"
    AutoGenerateColumns="False" 
    CssClass="mGrid"
    HorizontalAlign="Center"
    PageSize="10"
    DataSourceID="ObjectDataSource1">
	<AlternatingRowStyle CssClass="alt" />
            <Columns>
            <asp:BoundField DataField="notification" HeaderText="Read Notification" />
        </Columns>
    <PagerStyle CssClass="pgr" />
    </asp:GridView>
</div>
    

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderUser" runat="server">
</asp:Content>
